package st.business.tepth.business.bean.post;

import java.util.List;

import st.business.tepth.business.bean.PartBean;

/**
 * @author zhangyu
 * @date 2019/3/22
 */
public class ProgramConfirm {
    private int repair_id;
    private Plan sceneRepairPlan;

    public int getRepair_id() {
        return repair_id;
    }

    public void setRepair_id(int repair_id) {
        this.repair_id = repair_id;
    }

    public Plan getSceneRepairPlan() {
        return sceneRepairPlan;
    }

    public void setSceneRepairPlan(Plan sceneRepairPlan) {
        this.sceneRepairPlan = sceneRepairPlan;
    }

    public static class Plan {

        /**
         * fault_phenomenon_id : 1
         * fault_diagnostic_id : 1
         * vehicle_series_id : 2
         * maintenance_action_id : 3
         */
        //故障id
        private int fault_phenomenon_id;
        //诊断id
        private int fault_diagnostic_id;
        //系别id
        private int vehicle_series_id;
        //系统方案id(记录来源，临时添加的方案为空)
        private int system_repair_plan_id;
        //动作id
        private int maintenance_action_id;
        //0未关联 1关联过来的方案
        private int relation_state;
        //作业类型 1-小修 2-保养附加项
        private int type;
        //关联的方案id
        private int id;
        //零部件集合 里面通过type区分是零部件还是耗材
        private List<PartBean> planParts;
        private String positionCode;

        public String getPositionCode() {
            return positionCode;
        }

        public void setPositionCode(String positionCode) {
            this.positionCode = positionCode;
        }

        public int getSystem_repair_plan_id() {
            return system_repair_plan_id;
        }

        public void setSystem_repair_plan_id(int system_repair_plan_id) {
            this.system_repair_plan_id = system_repair_plan_id;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }
        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getRelation_state() {
            return relation_state;
        }

        public void setRelation_state(int relation_state) {
            this.relation_state = relation_state;
        }

        public List<PartBean> getPlanParts() {
            return planParts;
        }

        public void setPlanParts(List<PartBean> planParts) {
            this.planParts = planParts;
        }

        public int getFault_phenomenon_id() {
            return fault_phenomenon_id;
        }

        public void setFault_phenomenon_id(int fault_phenomenon_id) {
            this.fault_phenomenon_id = fault_phenomenon_id;
        }

        public int getFault_diagnostic_id() {
            return fault_diagnostic_id;
        }

        public void setFault_diagnostic_id(int fault_diagnostic_id) {
            this.fault_diagnostic_id = fault_diagnostic_id;
        }

        public int getVehicle_series_id() {
            return vehicle_series_id;
        }

        public void setVehicle_series_id(int vehicle_series_id) {
            this.vehicle_series_id = vehicle_series_id;
        }

        public int getMaintenance_action_id() {
            return maintenance_action_id;
        }

        public void setMaintenance_action_id(int maintenance_action_id) {
            this.maintenance_action_id = maintenance_action_id;
        }
    }
}

